<template>
  <div class="about-container">
    <div class="about-card">
      <div class="avatar">
        <img  :src="require('@/assets/default_img.jpg')" alt="头像" />
      </div>
      <h1 class="name">王子康</h1>
      <div class="school">
        <i class="fas fa-university"></i>
        武汉晴川学院
      </div>
      <div class="divider"></div>
      <p class="description">
        热爱编程、追求技术创新的开发者
      </p>
      <div class="social-links">
        <a href="#"><i class="fab fa-github"></i></a>
        <a href="#"><i class="fab fa-weixin"></i></a>
        <a href="#"><i class="fab fa-qq"></i></a>
      </div>
    </div>
  </div>
</template>

<style scoped>
.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.school {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 1rem 0;
}

.description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: #666;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #42b983;
}
</style>
